package com.neusoft.yiyang.bed.service;

import com.neusoft.yiyang.common.entity.bed.BedUsage;
import com.neusoft.yiyang.common.entity.bed.vto.BedCustomerUsage;
import com.neusoft.yiyang.common.entity.customer.Customer;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Date;
import java.util.Map;

public interface BedUsageService {

    void addBedUsage(BedUsage bedUsage);

    // 修改为 Date 类型
    void closeBedUsage(Integer bedUsageId, Date endDate);

    List<BedUsage> getBedUsageByCustomerId(Integer customerId);

    List<BedUsage> getBedUsageHistory(Integer bedId);

    List<Customer> searchCustomerByName(String customerName);

    void updateBedEndTime(Integer bedUsageId, Date endDate);

    void swapBed(Integer bedUsageId, String newRoomNumber, Integer newBedNumber);

    BedUsage getBedusageByCid(@PathVariable Integer customerId);

    //更新床位记录
    void updateBedUsage(@RequestBody BedUsage bedUsage);

    void exchangeBeds(Map<String, BedCustomerUsage> bedCustomerUsageMap);
}
